import com.alibaba.druid.pool.DruidDataSource;
import com.sqsf.util.DruidConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.*;


    //用于标识当前类为注解配置类
    @Configuration//等价于导入了文件的spring.xml
//开启组件扫描
    @ComponentScan("com.sqsf")//等价于<context:component-scan base-package="com.sqsf"/>
    //读取其他注解配置类内容
    @Import({DruidConfig.class})
    public class SpringConfig {
    }

